/**
 * Created by jonny on 12/23/15.
 */
app.controller('sellListContorller', ['$scope', 'sellService', function ($scope,sellService) {
    function list(page){
        $scope.result = '';
        sellService.list({
            currentPage: page,
            pageSize: 10
        }).then(function(result){

            $scope.result = result;
        })
    }
    list(1);

    $scope.pageChanged = function(page){
        list(page)
    }
}]);